home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-19 | 2.9 KB | 142 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: Locrian:WWDCSun:CPlusPlus:LinkSpec.xh.
- * Generated using:
- * SOM Precompiler somipc: somc/smemit.c
- * SOM Emitter emitxh.dll: somc/smmain.c
- */
-
- /*
- *
- * Theory of Operation
- *
- *
- * Classes defined in this interface
- *
- */
-
-
- #ifndef SOM_ODLinkSpec_xh
- #define SOM_ODLinkSpec_xh
-
- class ODLinkSpec;
-
- #define ODLinkSpec_MajorVersion 1
- #define ODLinkSpec_MinorVersion 0
-
- /* C++ som defs */
- #include <somcls.xh>
-
- /* Include C++ parent defs */
- #ifndef SOM_ODBaseLinkSpec_xh
- #include <LinkSpcB.xh>
- #endif
-
- #ifndef ODLinkSpec_API
- #define ODLinkSpec_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class ODExtension;
- class ODStorageUnit;
- class ODPart;
- class ODDraft;
-
- /*
- * End of user-defined types.
- */
-
- #if applec ^ PRAGMA_LIB_EXPORT
- #pragma lib_export on
- #endif
-
-
- /* A procedure to create the ODLinkSpec Class */
- SOMEXTERN SOMClass * SOMLINK ODLinkSpecNewClass(
- integer4 majorVersion,
- integer4 minorVersion);
-
- /* The API to the ODLinkSpec class object, and the methods it introduces. */
- typedef struct ODLinkSpecClassDataStructure {
- SOMClass *classObject;
- somMToken reserved1;
- somMToken reserved2;
- somMToken reserved3;
- somMToken reserved4;
- somMToken reserved5;
- somMToken reserved6;
- somMToken reserved7;
- somMToken reserved8;
- somMToken reserved9;
- } ODLinkSpecClassDataStructure;
- #ifdef SOM_NO_DATA_EXPORTS
- SOMEXTERN ODLinkSpecClassDataStructure * ODLinkSpecGetClassData ( void );
- # undef ODLinkSpecClassData
- # define ODLinkSpecClassData (*ODLinkSpecGetClassData())
- #else
- SOMEXTERN ODLinkSpecClassDataStructure ODLinkSpecClassData;
- #endif /* SOM_NO_DATA_EXPORTS */
-
- #if applec ^ PRAGMA_LIB_EXPORT
- #pragma lib_export off
- #endif
-
- #define _ODLinkSpec ODLinkSpecClassData.classObject
-
- /* The API to parentMtabs for ODLinkSpec, and the instance data it introduces. */
- SOMEXTERN struct ODLinkSpecCClassDataStructure {
- somMethodTabs parentMtab;
- somDToken instanceDataToken;
- } ODLinkSpecCClassData;
-
- /*
- * -- Typedefs for Procedures that support Methods introduced by ODLinkSpec
- */
- SOMEXTERN {
- }
-
- #endif /* ODLinkSpec_API */
-
-
- /*
- * -- Method Tokens are Thunks
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for ODLinkSpec
- */
- class ODLinkSpec : public ODBaseLinkSpec
- {
- public:
-
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- if (!ODLinkSpecClassData.classObject)
- ODLinkSpecNewClass(ODLinkSpec_MajorVersion,ODLinkSpec_MinorVersion);
- return (void *)
- ((somTD_SOMClass_somNew)
- somresolve_((SOMObject *)((void*)(ODLinkSpecClassData.classObject)),
- SOMClassClassData.somNew))
- ((SOMClass *)((void*)(ODLinkSpecClassData.classObject)));
- }
-
- void operator delete(void * obj)
- {
- ((SOMObject *)obj)->somFree();
- }
-
-
- }; /* ODLinkSpec */
-
-
-
- #endif /* SOM_ODLinkSpec_xh */
-